<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>仿携程按城市首字母城市选择JS特效代码 - jQuery插件库</title>
</head>

<body>

<style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}

.demo{width:480px;margin:40px auto 0 auto;}
.demo div{height:40px;float:left;width:240px;}
</style>
<script>
		function test(){
			alert(document.getElementById("cityid").value);
		}
	</script>
<div class="demo">

	<div>
		出发地：
		<input type="text" value="" size="15" id="homecity_name" name="homecity_name" mod="address|notice" mod_address_source="hotel" mod_address_suggest="" mod_address_reference="cityid" mod_notice_tip="中文/拼音" />
		<input id="cityid" name="cityid" type="hidden" value="{$cityid}" />
	</div>
	
	<div>
		目的地：
		<input type="text" value="" size="15" id="getcity_name" name="getcity_name" mod="address|notice" mod_address_source="hotel"  mod_address_reference="getcityid" mod_notice_tip="中文/拼音" />
		<input id="getcityid" name="getcityid" type="hidden" value="{$getcityid}" />
	</div>
<input type="button" value="测试" onclick="test()">
</div>

<script type="text/javascript" src="airport/fixdiv.js"></script>
<script type="text/javascript" src="airport/address.js"></script>
</body>
</html>